//
// Created by Administrator on 2022/10/31.
//

#ifndef ALLTEST_DEMO_H
#define ALLTEST_DEMO_H

#include <QWidget>
#include <QTreeWidgetItem>
#include <QStackedWidget>
#include <QDialog>

QT_BEGIN_NAMESPACE
namespace Ui { class demo; }
QT_END_NAMESPACE

class demo : public QWidget {
Q_OBJECT

public:
    QTreeWidget *treeWidget;
    QStackedWidget *stackedWidget;

    QWidget *Page_1;
    QWidget *Page_2;
    QWidget *Page_3;
    QWidget *Page_4;
    QWidget *Page_5;
    QWidget *Page_6;;
    QWidget *Page_7;
    QWidget *Page_8;
    QWidget *Page_9;

    QDialog *dialog;

    explicit demo(QWidget *parent = nullptr);

    ~demo() override;

    void InitTreeWidget();

    void InitStackedWidget();

    void addDialog(QWidget* par);
    void addDialogADD(QWidget* par);
    void addDialogSAO(QWidget* par);

public slots:

    void switchPage(QTreeWidgetItem *item, int column);


signals:


private:
    Ui::demo *ui;
};


#endif //ALLTEST_DEMO_H
